package cn.itcast.bos.service.base.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import cn.itcast.bos.dao.base.FixedAreaRepository;
import cn.itcast.bos.domain.base.FixedArea;
import cn.itcast.bos.service.base.IFixedAreaService;


@Service
@Transactional
public class FixedAreaImpl implements IFixedAreaService {

	@Autowired
	private FixedAreaRepository fixedAreaRepository;
	
	@Override
	public void save(FixedArea model) {
		
		fixedAreaRepository.save(model);
	}

	//条件分页查询
	@Override
	public Page<FixedArea> findPageDate(Specification<FixedArea> specification,
			Pageable pageable) {
		
		return fixedAreaRepository.findAll(specification,pageable);
	}

}
